package com.sky.mapper;

import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {

    /**
     * 根据openId 查询用户
     * @param openId
     * @return
     */
    @Select("select * from user where openid = #{openId}")
		User getByopenId(String openId);


		/**
		 * 插入用户
		 * @param user
		 */
		void insert(User user);
}
